package com.bootdo.wx.domain;

import com.bootdo.common.annotation.NotColumn;

import java.io.Serializable;
import java.util.Date;
import java.util.List;


/**
 * 
 * 
 * @author haojiangbo
 * @email 2100272728@qq.com
 * @date 2018-11-21 14:23:10
 */
public class WechatMenu implements Serializable {
	private static final long serialVersionUID = 1L;
	
	//
	private Integer id;
	//所属用户
	private Integer userId;
	//父ID
	private Integer parentId;
	//
	private String parentName;
	//菜单名称
	private String name;
	//菜单类型
	private String type;
	//事件 Key
	private String eventKey;
	//url
	private String url;
	//创建时间
	private Date createTime;
	//小程序跳转路径
	private String pagepath;
	
	private Integer isShow;

	@NotColumn
	private List<WechatMenu> children = null;
	@NotColumn
	private Boolean hasChildren = false;
    public WechatMenu(){
    	this.parentId = 0;
    	this.isShow = 1;
    	this.createTime = new Date();
    }

	public List<WechatMenu> getChildren() {
		return children;
	}

	public void setChildren(List<WechatMenu> children) {
		this.children = children;
	}

	public Boolean getHasChildren() {
		return hasChildren;
	}

	public void setHasChildren(Boolean hasChildren) {
		this.hasChildren = hasChildren;
	}

	/**
	 * 设置：
	 */
	public void setId(Integer id) {
		this.id = id;
	}
	/**
	 * 获取：
	 */
	public Integer getId() {
		return id;
	}
	/**
	 * 设置：所属用户
	 */
	public void setUserId(Integer userId) {
		this.userId = userId;
	}
	/**
	 * 获取：所属用户
	 */
	public Integer getUserId() {
		return userId;
	}
	/**
	 * 设置：父ID
	 */
	public void setParentId(Integer parentId) {
		this.parentId = parentId;
	}
	/**
	 * 获取：父ID
	 */
	public Integer getParentId() {
		return parentId;
	}
	/**
	 * 设置：
	 */
	public void setParentName(String parentName) {
		this.parentName = parentName;
	}
	/**
	 * 获取：
	 */
	public String getParentName() {
		return parentName;
	}
	/**
	 * 设置：菜单名称
	 */
	public void setName(String name) {
		this.name = name;
	}
	/**
	 * 获取：菜单名称
	 */
	public String getName() {
		return name;
	}
	/**
	 * 设置：菜单类型
	 */
	public void setType(String type) {
		this.type = type;
	}
	/**
	 * 获取：菜单类型
	 */
	public String getType() {
		return type;
	}
	/**
	 * 设置：事件 Key
	 */
	public void setEventKey(String eventKey) {
		this.eventKey = eventKey;
	}
	/**
	 * 获取：事件 Key
	 */
	public String getEventKey() {
		return eventKey;
	}
	/**
	 * 设置：url
	 */
	public void setUrl(String url) {
		this.url = url;
	}
	/**
	 * 获取：url
	 */
	public String getUrl() {
		return url;
	}
	/**
	 * 设置：创建时间
	 */
	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}
	/**
	 * 获取：创建时间
	 */
	public Date getCreateTime() {
		return createTime;
	}
	/**
	 * 设置：小程序跳转路径
	 */
	public void setPagepath(String pagepath) {
		this.pagepath = pagepath;
	}
	/**
	 * 获取：小程序跳转路径
	 */
	public String getPagepath() {
		return pagepath;
	}


	public Integer getIsShow() {
		return isShow;
	}


	public void setIsShow(Integer isShow) {
		this.isShow = isShow;
	}
}
